package com.cyf.db.bean;

import java.util.Date;

/**
 * @author hfy
 * @date 2018/7/11
 */
public class LocalCarWashCoupon {

    public static final int SOURCE_PC = 1;  //PC
    public static final int SOURCE_WECHAT = 2; //微信公众号

    /**
     * 正常，可用的
     */
    public static final int STATUS_OK = 1;
    /**
     * 过期的
     */
    public static final int STATUS_EXPIRE = 0;

    private int localCarwashCouponId;
    private int couponCount; //优惠券数量
    private int personId;//人员id
    private int source; //来源 1 PC、2 公众号
    private Integer status; //1 正常 0 过期
    private Date endTime; //有效期
    private Date createdTime;//创建时间

    private Integer id;
    private Integer parkingId;

    // 临时字段
    private String plates;
    private int usedCount;

    public String getSourceDesc() {
        switch (this.source) {
            case SOURCE_PC:
                return "PC";
            case SOURCE_WECHAT:
                return "微信";
            default: {

            }
        }
        return "未知";
    }


    public int getLocalCarwashCouponId() {
        return localCarwashCouponId;
    }

    public void setLocalCarwashCouponId(int localCarwashCouponId) {
        this.localCarwashCouponId = localCarwashCouponId;
    }

    public int getCouponCount() {
        return couponCount;
    }

    public void setCouponCount(int couponCount) {
        this.couponCount = couponCount;
    }

    public int getPersonId() {
        return personId;
    }

    public void setPersonId(int personId) {
        this.personId = personId;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParkingId() {
        return parkingId;
    }

    public void setParkingId(Integer parkingId) {
        this.parkingId = parkingId;
    }


    public int getUsedCount() {
        return usedCount;
    }

    public void setUsedCount(int usedCount) {
        this.usedCount = usedCount;
    }

    public String getPlates() {
        return plates;
    }

    public void setPlates(String plates) {
        this.plates = plates;
    }
}
